function genProto() {
    DOMAIN=$1
    PROTO_FILE_PATH=server/proto
    mkdir -p $PROTO_FILE_PATH/${DOMAIN}_out/v1
    protoc -I . $PROTO_FILE_PATH/${DOMAIN}.proto --go_out=$PROTO_FILE_PATH
    protoc -I . $PROTO_FILE_PATH/${DOMAIN}.proto --go-grpc_out=$PROTO_FILE_PATH

    PBTS_BIN_DIR=client_vue3/node_modules/.bin 
    PBTS_OUT_DIR=client_vue3/src/model/${DOMAIN}_out
    mkdir -p $PBTS_OUT_DIR
    $PBTS_BIN_DIR/pbjs -t static -w es6 $PROTO_FILE_PATH/${DOMAIN}.proto --no-create --no-encode --no-decode --no-verify --no-delimited --force-number -o $PBTS_OUT_DIR/${DOMAIN}_pb_tmp.js
    echo 'import * as $protobuf from "protobufjs";\n' > $PBTS_OUT_DIR/${DOMAIN}_pb.js
    cat $PBTS_OUT_DIR/${DOMAIN}_pb_tmp.js >> $PBTS_OUT_DIR/${DOMAIN}_pb.js
    # ${DOMAIN}_pb.${DOMAIN}_pb.d.ts声明文件
    rm -rf $PBTS_OUT_DIR/${DOMAIN}_pb_tmp.js
    $PBTS_BIN_DIR/pbts -o $PBTS_OUT_DIR/${DOMAIN}_pb.d.ts $PBTS_OUT_DIR/${DOMAIN}_pb.js
}

# genProto auth
# genProto rental
# genProto profile
# genProto blob
genProto car